<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>


        <description>
            A simple game with java opengl (jogl)
            On a plain checker, you need to take all
            the bonus on the map.
            
            Take the red bonus to get points!
        </description>

	<artifactId>darkfortress</artifactId>
        <groupId>be.ibiiztera</groupId>
        <version>2014-11-007</version>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	 <maven.compiler.source>1.8</maven.compiler.source>
	 <maven.compiler.target>1.8</maven.compiler.target>
	</properties>
	<!-- "Project Build" contains more elements than just the BaseBuild set -->
	<build>
		<defaultGoal>install</defaultGoal>
		<directory>${basedir}/target</directory>
		<finalName>${project.artifactId}-${project.version}</finalName>
	<!--
		<filters>
			<filter>filters/filter1.properties</filter>
		</filters>
	-->
	<resources>
      <resource>
        <targetPath>${basedir}/target/classes</targetPath>
        <filtering>false</filtering>
        <directory>${basedir}/src/main/java</directory>
        <includes>
          <include>**/*.properties</include>
        </includes>
        <excludes>
        </excludes>
      </resource>
    </resources>
		<sourceDirectory>${basedir}/src/main/java</sourceDirectory>
		<scriptSourceDirectory>${basedir}/src/main/scripts</scriptSourceDirectory>
		<testSourceDirectory>${basedir}/src/test/java</testSourceDirectory>
		<outputDirectory>${basedir}/target/classes</outputDirectory>
		<testOutputDirectory>${basedir}/target/test-classes</testOutputDirectory>
		
		<plugins>
		  <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
		 <version>2.0</version>
       <configuration>
       <archive>
         <manifest>
           <mainClass>info.emptycanvas.darkfortress.PanelGraphics</mainClass>
           <packageName>info.emptycanvas.darkfortress</packageName>
		   <addClasspath>true</addClasspath>
         </manifest>
         <manifestEntries>
           <mode>development</mode>
           <url>${pom.url}</url>
         </manifestEntries>
       </archive>
         </configuration>
     </plugin>
	 
       <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.6</version>
        <executions>
          <execution>
            <id>copy-resources</id>
            <!-- here the phase you need -->
            <phase>validate</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${basedir}/target/classes</outputDirectory>
              <resources>          
                <resource>
                  <directory>${basedir}/src/main/java</directory>
                  <filtering>true</filtering>
                </resource>
              </resources>              
            </configuration>            
          </execution>
        </executions>
      </plugin>



      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.2.1</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <phase>verify</phase>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      
      
      <!--
      
      
      <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.5.1</version>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-shade-plugin</artifactId>
            <version>1.7.1</version>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>shade</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <shadedArtifactAttached>true</shadedArtifactAttached>
                <shadedClassifierName>shaded</shadedClassifierName>
                <transformers>
                    <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                        <mainClass>info.emptycanvas.darkfortress.PanelGraphics</mainClass>
                        
                    </transformer>
                </transformers>
            </configuration>
        </plugin>
        <plugin>
            <groupId>com.akathist.maven.plugins.launch4j</groupId>
            <artifactId>launch4j-maven-plugin</artifactId>
            <version>1.5.1</version>
            <executions>
                <execution>
                    <id>l4j-clui</id>
                    <phase>package</phase>
                    <goals>
                        <goal>launch4j</goal>
                    </goals>
                    <configuration>
                        <headerType>gui</headerType>
                        <jar>${project.build.directory}/${artifactId}-${version}-shaded.jar</jar>
                        <outfile>${project.build.directory}/darkfortress.exe</outfile>
                        <downloadUrl>http://java.com/download</downloadUrl>
                        <classPath>
                            <mainClass>info.emptycanvas.darkfortress.PanelGraphics</mainClass>
                            <preCp>anything</preCp>
                        </classPath>
                        <icon>src/main/resources/icone.bmp</icon>
                        <jre>
                            <minVersion>1.6.0</minVersion>
                            <jdkPreference>preferJre</jdkPreference>
                        </jre>
                        <versionInfo>
                            <fileVersion>1.0.0.0</fileVersion>
                            <txtFileVersion>${project.version}</txtFileVersion>
                            <fileDescription>${project.name}</fileDescription>
                            <copyright>2012 hasCode.com</copyright>
                            <productVersion>1.0.0.0</productVersion>
                            <txtProductVersion>1.0.0.0</txtProductVersion>
                            <productName>${project.name}</productName>
                            <companyName>info.emptycanvas</companyName>
                            <internalName>DarkFortress</internalName>
                            <originalFilename>DarkFortress.exe</originalFilename>
                        </versionInfo>
                    </configuration>
                </execution>
            </executions>
        </plugin>-->
	</plugins>
  </build>
	<profiles>
		<profile>
			<!-- "Profile Build" contains a subset of "Project Build"s elements -->
	</profile>
	</profiles>
	<repositories>
         <repository>
           <id>jogamp-remote</id>
           <name>jogamp test mirror</name>
           <url>http://www.jogamp.org/deployment/maven/</url>
           <layout>default</layout>
         </repository>
       </repositories>
<dependencies>
    <dependency>
        <groupId>be.ibiiztera</groupId>
        <artifactId>emptycanvas</artifactId>
        <version>2014-11-009</version>
      <type>jar</type>
    </dependency>

    <dependency>
     <groupId>org.jogamp.jogl</groupId>
     <artifactId>jogl-all-main</artifactId>
     <version>2.0.2</version>
   </dependency>
   
   <dependency>
     <groupId>org.jogamp.jocl</groupId>
     <artifactId>jocl-main</artifactId>
     <version>2.0.2</version>
   </dependency>
   <dependency>
     <groupId>org.jogamp.joal</groupId>
     <artifactId>joal-main</artifactId>
     <version>2.0.2</version>
   </dependency>
    <dependency>
        <artifactId>jogl-all</artifactId>
        <groupId>org.jogamp.jogl</groupId>
        <type>jar</type>
        <version>2.0.2</version>
        <classifier>natives-linux-amd64</classifier>
    </dependency>
    <dependency>
        <groupId>org.jogamp.gluegen</groupId>
        <artifactId>gluegen-rt</artifactId>
      <version>2.0.2-rc12</version>
      <classifier>natives-linux-amd64</classifier>
    </dependency>
    <dependency>
        <artifactId>joal</artifactId>
        <groupId>org.jogamp.joal</groupId>
        <type>jar</type>
        <version>2.0.2</version>
        <classifier>natives-linux-amd64</classifier>
    </dependency>
    <dependency>
        <groupId>org.jogamp.gluegen</groupId>
        <artifactId>gluegen-rt-main</artifactId>
      <version>2.0.2-rc12</version>
    </dependency>
</dependencies>	

</project>
